package com.typhoon.spring_jdbctemplate.dao.support;

import java.util.List;

import org.springframework.dao.DataAccessException;
import org.springframework.jdbc.core.JdbcOperations;
import org.springframework.jdbc.core.RowMapper;

/**
 * 自定义jdbc操作
 * 
 * @author Typhoon
 * @date 2018-05-06 14:38 Sunday
 * @since V2.0.0
 */
public interface CustomJdbcOperations extends JdbcOperations {
	
	/**
	 * 分页查询
	 * 
	 * @author Typhoon
	 * @date 2018-05-06 14:50 Sunday
	 * @param sql
	 * @param rowMapper
	 * @param pageQuery
	 * @param args
	 * @return
	 * @throws DataAccessException
	 */
	<T> PageResult<T> page(String sql, RowMapper<T> rowMapper,PageQuery pageQuery, Object... args) throws DataAccessException;

}
